package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Lenovo-songfengli on 2016/9/18.
 */
@Entity
@Table(name = "RC_CORP_RATING_CONFIG")
public class RcCorpRatingConfig extends BaseEntity {
    /** 主键 */
    @Id
    @Column(name = "ID")
    private String id;
    /** 资源id */
    @Column(name="CODE")
    private BigDecimal code;
    /** 父资源id */
    @Column(name="PARENT_CODE")
    private BigDecimal parentCode;
    /** 级别 */
    @Column(name="CODE_LEVEL")
    private BigDecimal codeLevel;
    /** 参数内容 */
    @Column(name="CONTENT", length=30)
    private String content;
    /** 分值 */
    @Column(name="SCORE")
    private BigDecimal score;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;
    /** 最后操作时间 */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    /** 最后操作用户id  */
    @Column(name="LAST_UPD_USER_ID", length=10)
    private String lastUpdUserId;
    /** 乐观锁版本号 */
    @Version
    @Column(name = "VERSION")
    private Integer version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BigDecimal getCode() {
        return code;
    }

    public void setCode(BigDecimal code) {
        this.code = code;
    }

    public BigDecimal getParentCode() {
        return parentCode;
    }

    public void setParentCode(BigDecimal parentCode) {
        this.parentCode = parentCode;
    }

    public BigDecimal getCodeLevel() {
        return codeLevel;
    }

    public void setCodeLevel(BigDecimal codeLevel) {
        this.codeLevel = codeLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdUserId() {
        return lastUpdUserId;
    }

    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
